package com.zm.admin.zmeng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zm.admin.utils.ResultBean;
import com.zm.admin.zmeng.domain.ZmAttachment;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;

/***
 *
 * @Auther: MuYun
 * @Date: 2023/2/6 10:42
 * @Description： 附件service
 *
 */
public interface ZmAttachmentService extends IService<ZmAttachment> {

    /**
     * 附件上传
     * @param file
     * @param type
     * @return
     */
    String upload(HttpServletRequest request, MultipartFile file, String type) throws Exception;

    void download(ZmAttachment attachment) throws Exception;

    ResultBean del(List<ZmAttachment> list);
}
